package cn.dw.utils;

import java.io.Serializable;
import java.util.List;

public class PagerModel
  implements Serializable
{
  private static final long serialVersionUID = 6201946643691574099L;
  private int offset = 0;
  private int pagesize = 10;
  private int total;
  private List<?> list;
  
  public PagerModel() {}
  
  public PagerModel(int offset, int pagesize)
  {
    this.offset = offset;
    this.pagesize = pagesize;
  }
  
  public int getOffset()
  {
    return this.offset;
  }
  
  public void setOffset(int offset)
  {
    this.offset = offset;
  }
  
  public int getPagesize()
  {
    return this.pagesize;
  }
  
  public void setPagesize(int pagesize)
  {
    this.pagesize = pagesize;
  }
  
  public int getTotal()
  {
    return this.total;
  }
  
  public void setTotal(int total)
  {
    this.total = total;
  }
  
  public List<?> getList()
  {
    return this.list;
  }
  
  public void setList(List<?> list)
  {
    this.list = list;
  }
  
  public String toString()
  {
    return 
      "PagerModel [offset=" + this.offset + ", pagesize=" + this.pagesize + ", total=" + this.total + "]";
  }
}
